<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>好友请求- ${site.name} - bbs</title>
    <meta content="java,cms,jsp,cms,jsp bbs,开源网站内容管理系统,网站群,站群,多站点,jeecms" name="keywords" />
    <meta content="讨论jsp cms、jsp bbs相关资讯，struts,hibernate,spring,freemarker最新技术研究" name="description" />
	<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
    <script src="${resSys}/jquery.js" type="text/javascript"></script>
    <link href="/${res}/bbs_forum/css/whole.css" type="text/css" rel="stylesheet" />
    <link href="/${res}/bbs_forum/css/layout.css" type="text/css" rel="stylesheet" />
    <link href="/${res}/bbs_member/css/set.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
    #set-menu li.current7{background:url(/${res}/bbs_member/img/fav-cur.gif) no-repeat 0 0.5em;}
    #set-menu li.current7 a{color:#707070;font-weight:700}
    </style>
    <script type="text/javascript">
    function accept(id){
		$.post("accept.jhtml",{"id": id},function(data){
			if(data){
				$("#r"+id).html(data);
			}
		});
	}

    function refuse(id){
		$.post("refuse.jhtml",{"id": id},function(data){
			if(data){
				$("#r"+id).html(data);
			}
		});
	}
    </script>
  </head>
  <body>
    <!--header-->[#include "../include/header.html"/]<!--/header-->
    <!--main-->
    <div class="main-wrap">
    <div id="main">
    <div id="breadCrumb"><img alt="" align="absMiddle" style="cursor: pointer" src="/${res}/bbs_forum/img/home.gif" /> <a href="${base}/">${site.name}</a> &raquo; <a href="${base}/member/index.jhtml">会员中心</a> &raquo;好友请求</div>
    <div id="set-wrap">
    <div id="set-side">
    <div id="set-side-wrap">
    [#include "memberCenterMenu.html"/]
    </div>
    </div>
    <div id="set-content">
    <div class="cc" id="set-content-wrap">
    <div>
    <div class="set-tab-table">
    <table cellspacing="0" cellpadding="0" border="0">
      <tbody>
        <tr class="tac" id="infolist">
          <td class="current"><a href="#" style="cursor: pointer">好友请求</a></td>
        </tr>
      </tbody>
    </table>
    </div>
     <div class="set-tab-box" style="height:100px;">
     [@friend_apply_page userId=user.id count=5]
     	[#list tag_pagination.list as friendship]
     	<span id="r${friendship.id}">
     	${(friendship.user.username)!}--------------<a href="javascript:accept('${friendship.id}')">接受</a>　<a href="javascript:refuse('${friendship.id}')">拒绝</a><br/>
     	</span>
     	[/#list]
     [/@friend_apply_page]
    </div>
    [@friend_apply_page userId=user.id count=5]
     [#include "../tag/topic.html"/]
    [/@friend_apply_page]
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <!--/main-->
    <!--footer-->[#include "../include/footer.html"/]<!--footer-->
  </body>
</html>